package com.school.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.school.dao.HljtExamDao;
import com.school.entity.HljtExam;
import com.school.entity.web.Examination;
import com.school.service.HljtExamService;
@Service
public class HljtExamServiceImpl implements HljtExamService {
	@Autowired
	private HljtExamDao hljtExamDao;

	@Override
	public HljtExam fiandExam(int classid) {
			return hljtExamDao.fiandExam(classid);
	}

	@Override
	public List<Examination> findhljtexamall(Integer classid, Integer pageSize, Integer pageIndex) {
		return hljtExamDao.findhljtexamall(classid, pageSize, pageIndex);
	}

	@Override
	public Integer deleteexam(Integer id) {
		// TODO Auto-generated method stub
		return hljtExamDao.deleteexam(id);
	}

	@Override
	public Integer addexam(HljtExam hljtexam) {
		// TODO Auto-generated method stub
		return hljtExamDao.addexam(hljtexam);
	}

	@Override
	public Integer updateexam(HljtExam hljtexam) {
		// TODO Auto-generated method stub
		return hljtExamDao.updateexam(hljtexam);
	}

}
